// 统一图片地址
export const imgPath = (img: string) => {
  return require(`@/assets/images${img}`);
}
// 将file文件上传转化为base64
export const getBase64ByFile = (file: Blob) => {
  return new Promise((resolve, reject) => {
    const reader = new FileReader();
    reader.readAsDataURL(file);
    reader.onload = () => resolve(reader.result);
    reader.onerror = error => reject(error);
  })
}
//统一文档地址
export const file_url = (url:string) => {
  return (`https://static.nb-usee.com/tour-doc/${url}`)
}
